package com.GUI;

import javax.swing.*;

public class logindemo {
  public static void main(String[] args) {
    JFrame jf = new JFrame("First Window");
    jf.setLayout(null);
    jf.setBounds(570,420,300,200);

    JLabel text = new JLabel("用户名:");
    text.setBounds(50,30,80,30);
    JLabel text2 = new JLabel("密　码:");
    text2.setBounds(50,70,80,30);
    jf.add(text);
    jf.add(text2);
    jf.setVisible(true);
    jf.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  }
}
